#ifndef AHT10_H
#define AHT10_H

#include <stdint.h>


#define AHT10_I2C_PORT I2C_NUM_0
#define AHT10_SDA_GPIO 3
#define AHT10_SCL_GPIO 4


/**
 * @brief Initialize the AHT10 sensor.
 *
 * @return 0 on success, otherwise an error code.
 */
int aht10_init();

/**
 * @brief Read the temperature and humidity values from the AHT10 sensor.
 *
 * @param[out] temperature The temperature value in degrees Celsius.
 * @param[out] humidity The relative humidity value in percent.
 * @return 0 on success, otherwise an error code.
 */
int aht10_read(float *temperature, float *humidity);

#endif /* AHT10_H */